﻿using System.Collections.ObjectModel;
using BestCode.Creds.Data;
using BestCode.Creds.Entities;

namespace BestCode.Creds.Business
{
    public class AttachmentBusiness : BusinessBase<Attachment>
    {
        private IAttachmentDao dao = DataFactory.Current.GetAttachmentDao();

        public AttachmentBusiness()
        {
            setDao(dao);    
        }

        public override ObservableCollection<Attachment> SearchByFilter(string parameter)
        {
            return new ObservableCollection<Attachment>(dao.GetByFilter(parameter));
        }
    }
}
